<template>
	<div class="box"></div>
	<Button type="default" @click="add">操作</Button>
</template>
<script>
import axios from 'axios'
export default {
	data() {
		return {

		}
	},
	methods: {
		add() {
			const data = {
				a: 1,
				b: 2
			}
			axios.post('http://localhost/test-vue3/nodejs/250927/file.php', data).then(res => {
				console.log(res);
			});
		}
	}
}
</script>
<style lang="scss" scoped>
.box {
	width: 100px;
	height: 100px;
	border: 1px solid #000;
}
</style>